package com.hz.service;

import com.hz.pojo.SafetyInfo;
import com.hz.utils.MassageJsons;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface SafetyInfoService {
    /**
     * 提现余额
     * @param open_id    用户唯一标识
     * @param account_money     提现金额
     * @return
     * @throws Exception
     */
    public abstract MassageJsons updAccountMoney(String open_id, Double account_money) throws Exception;

    /**
     * 根据open_id查询用户安全信息
     * @param open_id
     * @return
     * @throws Exception
     */
    public abstract SafetyInfo getSafetyInfo(String open_id) throws Exception;

    /**
     * 修改支付密码
     * @param open_id       用户唯一标识
     * @param pay_password  修改的支付密码
     * @return
     * @throws Exception
     */
    public abstract int updPayPassword(String open_id,String pay_password) throws Exception;

}
